package com.mobile.web.ai;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

// 请求体
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AIRequest {
    private String model = "deepseek-coder";
    private List<Message> messages;
    private double temperature = 0.7;
    private int max_tokens = 2000;
    private boolean stream = true;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Message {
        private String role;
        private String content;
    }
}

